🎖️GitЯра🎖️
core/di/README.md bd2863243bab6eb213401d949839a2bc74dde7e2 (bd286324) Text, 1.78 KB
Tc9d1d9# `:core:di`
Tc9d1d9## Overview
**Targets:** Android · JVM (Desktop) · iOS
The Ta5d6ff`:core:di` module defines the core Koin modules and provides standard dependencies that are shared across all other modules.
Tc9d1d9## Key Components
Tc9d1d9### 1. `CoroutineDispatchers.kt`
A small data class wrapping the standard coroutine dispatchers (Ta5d6ff`io`, Ta5d6ff`main`, Ta5d6ff`default`), allowing injected classes to swap in test dispatchers instead of hard-coding Ta5d6ff`Dispatchers.*`.
Tc9d1d9### 2. `di/CoreDiModule.kt`
The Koin Ta5d6ff`@Module` for this module. Provides the Ta5d6ff`CoroutineDispatchers` singleton — Ta5d6ff`main`/Ta5d6ff`default` from Ta5d6ff`kotlinx.coroutines.Dispatchers`, Ta5d6ff`io` from Ta5d6ff`:core:common`'s platform-aware Ta5d6ff`ioDispatcher`.
Tc9d1d9## Dependency Graph
<!--region graph-->
Ta5d6ff```Ta5d6ffmermaid
Ta5d6ffgraph TB
:core:di[di]:::kmp-library
:core:di -.-> :core:common
classDef android-application fill:#CAFFBF,stroke:#000,stroke-width:2px,color:#000;
classDef android-application-compose fill:#CAFFBF,stroke:#000,stroke-width:2px,color:#000;
classDef compose-desktop-application fill:#CAFFBF,stroke:#000,stroke-width:2px,color:#000;
classDef android-feature fill:#FFD6A5,stroke:#000,stroke-width:2px,color:#000;
classDef android-library fill:#9BF6FF,stroke:#000,stroke-width:2px,color:#000;
classDef android-library-compose fill:#9BF6FF,stroke:#000,stroke-width:2px,color:#000;
classDef android-test fill:#A0C4FF,stroke:#000,stroke-width:2px,color:#000;
classDef jvm-library fill:#BDB2FF,stroke:#000,stroke-width:2px,color:#000;
classDef kmp-feature fill:#FFD6A5,stroke:#000,stroke-width:2px,color:#000;
classDef kmp-library-compose fill:#FFC1CC,stroke:#000,stroke-width:2px,color:#000;
classDef kmp-library fill:#FFC1CC,stroke:#000,stroke-width:2px,color:#000;
classDef unknown fill:#FFADAD,stroke:#000,stroke-width:2px,color:#000;
Ta5d6ff```
<!--endregion-->
Served by rngit 1.5.2 - Generated in 0.06s